<!--{template admin/header.html}-->
<link href="{CSS_URL}/jquery/jquery.ajaxtree.css" rel="stylesheet" type="text/css" />
<script src="{JS_URL}/jquery/jquery.ajaxtree.js" type="text/javascript"></script>
<div id="main">
    <div id="shortcut">
        <a href="{APP_URL}/index.php/{$m}">返回首页</a> <span>&raquo;</span> <a href="{APP_URL}/index.php/{$m}/{$p}">分类管理</a>
    </div>
    <div id="content">

        <div id="category_container">

            <div id="category_tree">
                <div style="height:1px; margin-top:-1px;clear: both;overflow:hidden;"></div></div>

            <div id="category_main">
                <div style="color:red; height:30px;">注意：加*号的为必填项</div>
                <fieldset>
                    <legend>更新缓存</legend>
                    <table width="500" class="category" >
                        <tr height="40">
                            <td width="180">&nbsp;</td>
                            <td><input type="button" id="update_button" value="更新" />&nbsp; <span id="msg3" style="color:red;"></span></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend>添加分类</legend>
                    <form method="post" id="add_form">
                        <input type="hidden" name="action" value="add" />
                        <input type="hidden" id="parent_id1" name="parent_id" value="" />
                        <input type="hidden" name="category_level" id="category_level" value="-1">
                        <table width="500" class="category" >
                            <tr height="30">
                                <td width="180" align="right">上级名称：</td>
                                <td><input type="text" id="parent_text1" name="parent_text" style="width:200px;" readonly="readonly" /><font color="#FF0033"> <b>*</b></font></td>

                            </tr>
                            <tr height="30">
                                <td width="180" align="right">下级名称：</td>
                                <td><input type="text" id="category_name1" name="category_name" style="width:200px;" /><font color="#FF0033"> <b>*</b></font></td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">所属模块：</td>
                                <td>
                                    <select id="module1" name="module" >
                                        <option value=""></option>
                                        {loop $module_array $key $value}
                                        {if strpos($value,'.') === false}<option value="{$value}">{$value}</option>{/if}
                                        {/loop}
                                    </select>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">所属页面：</td>
                                <td>
                                    <select id="page1" name="page" ></select>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right" title="格式为:/参数1名/参数1值/参数2名/参数2值/...">参数：</td>
                                <td>
                                    <input type="text" id="parameter1" name="parameter" style="width:200px;" />
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right" title="当且仅当所属模块为空时有效">链接地址：</td>
                                <td>
                                    <input type="text" id="link1" name="link" style="width:200px;" />
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">是否在导航拦显示：</td>
                                <td>
                                    <label><input type="radio" id="display_menu1_Y" name="display_menu" value="Y" checked="checked" />是</label>
                                    <label><input type="radio" id="display_menu1_N" name="display_menu" value="N" />否</label>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">是否在左侧列表显示：</td>
                                <td>
                                    <label><input type="radio" id="display_list1_Y" name="display_list" value="Y" checked="checked" />是</label>
                                    <label><input type="radio" id="display_list1_N" name="display_list" value="N" />否</label>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">排序：</td>
                                <td><input type="text" id="order_by1" name="order_by" style="width:200px;" /></td>
                            </tr>
                            <tr height="40">
                                <td width="180">&nbsp;</td>
                                <td><input type="button" id="add_button" value="添加" />
                                    &nbsp; <span id="msg1" style="color:red;"></span>
                                </td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
                <br /><br />
                <fieldset>
                    <legend>修改/删除区域</legend>
                    <form id="edi_form" method="post">
                        <input type="hidden" name="action" value="edit" />
                        <input type="hidden" id="category_id2" name="category_id" value="" />
                        <table width="500">
                            <tr height="30">
                                <td width="180" align="right">名称：</td>
                                <td><input type="text" id="category_name2" name="category_name" style="width:200px;" /><font color="#FF0033"> <b>*</b></font></td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">所属模块：</td>
                                <td>
                                    <select id="module2" name="module" >
                                        <option value=""></option>
                                        {loop $module_array $key $value}
                                        {if strpos($value,'.') === false}<option value="{$value}">{$value}</option>{/if}
                                        {/loop}
                                    </select>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">所属页面：</td>
                                <td>
                                    <select id="page2" name="page" ></select>
                                </td>
                            </tr>
                            <tr height="30" title="格式为:/参数1名/参数1值/参数2名/参数2值/...">
                                <td width="180" align="right">参数：</td>
                                <td>
                                    <input type="text" id="parameter2" name="parameter" style="width:200px;" />
                                </td>
                            </tr>
                            <tr height="30" title="当且仅当所属模块为空时有效">
                                <td width="180" align="right">链接地址：</td>
                                <td>
                                    <input type="text" id="link2" name="link" style="width:200px;" />
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">是否在导航拦显示：</td>
                                <td>
                                    <label><input type="radio" id="display_menu2_Y" name="display_menu" value="Y" />是</label>
                                    <label><input type="radio" id="display_menu2_N" name="display_menu" value="N" />否</label>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">是否在左侧列表显示：</td>
                                <td>
                                    <label><input type="radio" id="display_list2_Y" name="display_list" value="Y" />是</label>
                                    <label><input type="radio" id="display_list2_N" name="display_list" value="N" />否</label>
                                </td>
                            </tr>
                            <tr height="30">
                                <td width="180" align="right">排序：</td>
                                <td><input type="text" id="order_by2" name="order_by" style="width:200px;" /></td>
                            </tr>
                            <tr height="40">
                                <td width="180">&nbsp;</td>
                                <td><input type="button" id="edi_button" value="修改" />
                                    &nbsp; <input type="button" id="del_button" value="删除" />
                                    &nbsp; <!--<input type="button" id="mov_button" value="移动" onclick="return doCategoryMove(this.form);" style="display:none;" />-->
                                    <br /> <span id="msg2" style="color:red;"></span>
                                </td>
                            </tr>
                        </table>
                    </form>
                </fieldset>

            </div>
        </div>

        <div style="height:1px; margin-top:-1px;clear: both;overflow:hidden;"></div>
    </div>

</div>

<!--{template admin/footer.html}-->
